using UnityEngine;

namespace Brick
{
	public class ObstacleManager : MonoBehaviour
	{
		public GameObject prefab;

		public GameObject[] obstaclePrefabs;

		public float LowestY;

		public Vector2[] HorizontalPos;

		private void Start()
		{
			ObstacleBuild();
		}

		private void Update()
		{
		}

		public void ObstacleBuild()
		{
			Vector2[] horizontalPos = HorizontalPos;
			foreach (Vector2 v in horizontalPos)
			{
				GameObject gameObject = UnityEngine.Object.Instantiate(prefab, base.transform);
				gameObject.transform.position = v;
			}
		}
	}
}

